<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/4/15
  Time: 14:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../common/web_top.jsp" %>
<title>文档模板</title>
<div ng-include="loanBefore" class="includeStyle "><!--定位div容器-->


    <div class="bgSortScroll">
        <!-- ngIf: HbHr.hr187 -->
        <div class="public-bgContent " ng-init="load()" ng-if="HbHr.hr187">
            <!--表单搜索  露-->
            <div class="public-bgDate">
                <div class="se-re">
                    <div id="department_content"></div>
                    <script type="text/x-handlebars-template" id="department_content_tpl">

                        <select ng-options="b.id as b.d_name for b in buMenNew" ng-model="param.dptId"
                                ng-change="seltt()"
                                class="ng-pristine ng-untouched ng-valid ng-empty department_select">
                            <option value="" class="" selected="selected">部门</option>
                            {{#each .}}
                            <option label="{{d_name}}" value="{{id}}">{{d_name}}</option>
                            {{/each}}
                        </select>
                        <span class="se-po"></span>
                    </script>
                </div>

                <span>
			<input type="text" autocomplete="off" id="inputNames" style="width: 166px" placeholder="请输入更新者/文档名称" ng-focus="remHight()"
                   ng-model="param.name"
                   class="ng-pristine ng-untouched ng-valid ng-empty">
		</span>
                <div class="se-re">
                    <select ng-model="param.doc_type" class="loanWay_select ng-pristine ng-untouched ng-valid ng-empty doc_type">
                        <option value="" selected="selected">类型</option>
                    </select>
                    <script type="text/x-handlebars-template" id="loanMethod_list_tpl">
                        {{#each content}}
                        <option value="{{id}}">{{name}}</option>
                        {{/each}}
                    </script>
                    <span class="se-po"></span>
                </div>
                <div class="se-re">
                    <select id="product_choose_list" class="ng-pristine ng-untouched ng-valid ng-empty">
                        <option value="">选择产品</option>
                        <%--<option value="1">按揭短拆</option>
                        <option value="2">红本抵押</option>
                        <option value="3">红本质押</option>--%>
                    </select>
                    <span class="se-po"></span>
                </div>
                <button id="sousuo">
                    <i class="iconfont icon-sousuo"></i>
                </button>
            </div>
            <!--提示操作-->
                <div class="public-bghint">
                    <span ng-click="show('caozuo')" style="cursor: pointer;">提示操作</span>
                    <i class="iconfont icon-icon-copy-copy"></i>
                    <span class="calNum">筛选<span class="result "></span>条结果</span>
                </div>
                <ul class="public-ulList" ng-show="loanLaterShow.caozuo">
                    <li>显示已登录管理员权限范围内的添加的信息；</li>
                    <li>拥有权限的管理员可以对客户进行上传、下载、删除；如果没有该权限，则操作性不显示对应的操作按钮</li>
                </ul>
                <div style="height: 20px;"></div>
                <div class="table-scroll">
                    <!--tabel 列表-->
                    <table class="table public-table PoInput">
                        <thead>
                        <tr>
                            <td>全选</td>
                            <td>创建时间</td>
                            <td>文档编号</td>
                            <td>文档类型</td>
                            <td>文档名称</td>
                            <td>文档格式</td>
                            <td>更新者</td>
                            <td>部门</td>
                            <td>更新时间</td>
                            <td>操作</td>
                        </tr>
                        </thead>
                        <tbody id="b_content">

                        <!-- end ngRepeat: i in data.content.list -->
                        <!-- ngIf: data.content.list.length==0 -->
                        </tbody>
                        <script type="text/x-handlebars-template" id="b_content_tpl">
                            <!-- end ngRepeat: i in data.content.list -->
                            {{#if content.content.list}}
                            {{#each content.content.list}}
                            <tr ng-repeat="i in data.content.list" ng-click="tabClick($event)"
                                class="table-tr-hover ">
                                <td><input type="checkbox" name="ch_id" value="{{id}}"></td>
                                <td class="">{{doc_creation_time}}</td>
                                <td>{{doc_number}}</td>
                                <!-- ngIf: i.doc_type=='1' -->
                                <td>
                                    <%--{{#if_eq doc_type 1}}
                                    按揭房短拆
                                    {{/if_eq}} {{#if_eq doc_type 2}}
                                    红本抵押
                                    {{/if_eq}}
                                    {{#if_eq doc_type 3}}
                                    红本质押
                                    {{/if_eq}}--%>
                                    {{docTypeName}}
                                </td><!-- end ngIf: i.doc_type=='1' -->
                                <!-- ngIf: i.doc_type=='2' -->
                                <!-- ngIf: i.doc_type=='3' -->
                                <td class="">{{doc_name}}</td>
                                <td>doc</td>
                                <td class="">{{real_name}}</td>
                                <td class="">
                                    {{#if dName3}}
                                    {{dName3}}&gt;
                                    {{/if}}
                                    {{#if dName2}}
                                    {{dName2}}&gt;
                                    {{/if}}
                                    {{#if dName1}}
                                    {{dName1}}
                                    {{/if}}
                                </td>

                                <td class="">{{doc_creation_time}}</td>
                                <td>
                                    <div class="se-re sel-blue">
                                        <select ng-click="F.stopPropagation($event)" data-id="{{id}}"
                                                class="tabHint tt1 ng-not-empty doc_templateSelect"
                                                ng-model="selectType.default" ng-change="F.selectQuery('tt1')">
                                            <option value="-1" selected="selected">选择操作</option>
                                            {{#each ../fourthMenus}}
                                            <option value="{{key}}" {{#IF_EQ key 'addTemplate'}}style='display:none'{{/IF_EQ}}>{{name}}</option>
                                            <!-- ngIf: HbHr.hr188 -->
                                            <%--<option ng-if="HbHr.hr188" value="1" path="use" params="loadFile" param="id:1"--%>
                                            <%--data-type="4" class="">下载文档--%>
                                            <%--</option><!-- end ngIf: HbHr.hr188 -->--%>
                                            <!-- ngIf: HbHr.hr189 -->
                                            <%--<option ng-if="HbHr.hr189" value="2" data-type="1" path="use" data-id="{{id}}"
                                                    params="renewTemplate"
                                                    param="id:1,doc_type:1,doc_name:借款合同,a_id:79" class=""> 更新文档
                                            </option><!-- end ngIf: HbHr.hr189 -->
                                            <!-- ngIf: HbHr.hr190 -->
                                            <option ng-if="HbHr.hr190" value="3" path="use" data-id="{{id}}"
                                                    params="deleFile" param="id:1"
                                                    class="">删除文档
                                            </option><!-- end ngIf: HbHr.hr190 -->--%>
                                            {{/each}}
                                        </select>
                                        <span class="se-po-blue"></span>
                                    </div>
                                    <!-- ngIf: HbHr.hr268 -->
                                    <button class="operations_record tabHint btnQuery1" id="{{id}}">
                                        操作记录
                                    </button><!-- end ngIf: HbHr.hr268 -->
                                </td>
                            </tr>
                            {{/each}}
                            {{else}}
                            <tr ng-if="data.content.list.length ==0" class="">
                                <td colspan="16">暂时找不到数据</td>
                            </tr>
                            {{/if}}
                        </script>
                        <tfoot class="public-botPage">
                        <tr>
                            <td>
                                <!-- 全选反选  -->
                                <input id="checkboxAll" type="checkbox" ng-click="F.ch_id_all($event,'ch_id')">
                            </td>
                            <td colspan="12">
                                <div class="public-botPage-left">
							<span>
								<span>全选</span>
							</span>
                                    <div class="se-re">
                                        <select id="bulk_operation" class="tabHint supportc ng-pristine ng-untouched ng-valid ng-not-empty document_template_select"
                                                ng-model="selectType.default"
                                                ng-change="F.selectQuery('supportc','ch_id')">
                                            <option value="-1" selected="selected">批量操作</option>
                                            <!-- ngIf: HbHr.hr188 -->
                                            <option ng-if="HbHr.hr188" value="批量下载" path="use" params="loadFile"
                                                    data-type="4"
                                                    class="">批量下载
                                            </option><!-- end ngIf: HbHr.hr188 -->
                                            <!-- ngIf: HbHr.hr190 -->
                                            <option ng-if="HbHr.hr190" value="删除所选" path="use" params="deleFile"
                                                    class="">
                                                删除所选
                                            </option><!-- end ngIf: HbHr.hr190 -->
                                        </select>
                                        <span class="se-po"></span>
                                    </div>
                                    <!-- ngIf: HbHr.hr191 -->
                                    <script type="text/x-handlebars-template" id="special_fourth_tpl">
                                        {{#each .}}
                                            {{#IF_EQ key 'addTemplate'}}
                                            <button ng-if="HbHr.hr191" class="tabHint add_template_btn"
                                                ng-click="F.toggleView('use','addTemplate')">
                                            添加模版
                                            </button><!-- end ngIf: HbHr.hr191 -->
                                            {{/IF_EQ}}
                                        {{/each}}
                                    </script>
                                </div>
                            <div class="page-container all-page-container"
                                 style="float: right; padding: 15px 0;"></div>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!--底部操作-->
                </div>
        </div><!-- end ngIf: HbHr.hr187 -->
    </div>

</div>

<%--删除确认弹框--%>
<div class="winBox delete_winBox">
    <!-- 加载弹窗盒子容器 -->
    <!-- ngInclude: box -->
    <div class="winBox1 " ng-include="box"><!-- 说明： 选择已有客户 -->
        <div class="winBox3 ">
            <div class="deleteBox">
                <!-- 头部 -->
                <div class="headerBox">
                    <span class="headerSpan">删除申请</span>
                    <i class="iconfont icon-wrong headerIcon" ng-click="F.showWin('hide')"></i>
                </div>
                <!-- 内容 -->
                <div class="deleBox">
                    <!-- 中间列表 -->
                    <div class="deleteTit">
			<span class="first">
				<i class="iconfont icon-tips2"></i>
			</span>
                        <span>您确定要删除？一旦删除信息无法恢复！</span>
                    </div>
                    <div class="beizhu"><span>*</span>备注</div>
                    <textarea ng-focus="remHight()" ng-class="{'error':redErr.remarks}" data-tag="textLength"
                              showtag="zishuxians"  ng-model="reason"
                              class="ng-pristine ng-valid ng-empty ng-valid-maxlength ng-touched"></textarea>
                    <!-- 底部 -->
                    <div class="deleFooter">
                        <div class="deleBtn">
                            <button class="sureDel">确定删除</button>
                            <button class="canDel">取消删除</button>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="static/js/page/application/document_template.js?_v=190102162154"></script>

<%@ include file="../../common/web_bottom.jsp" %>
